package com.hfjc.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import com.hfjc.entity.User;

@RestController
public class HelloController {

	
	@RequestMapping(value={"/hello/{id}","/hi"},method=RequestMethod.GET)
	public String hello(@PathVariable("id") String id){
		//return "hello："+NAME;
		return 	id;
	}
	@RequestMapping(value={"/hello1","/hi1"},method=RequestMethod.GET)
	public String hello1(@RequestParam(value="id",defaultValue="00",required=false) String id){
		//return "hello："+NAME;
		return 	id;
	}

}
